LEADTOOLS (Leadtools assembly)

SetPixelData(Int32,Int32,Byte[]) Method

Show in webframe







The zero-based row number of the pixel.
The zero-based column number of the pixel.
Buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
Changes the data of the specified pixel.
Syntax
public void SetPixelData( 
   int row,
   int column,
   byte[] data
)
'Declaration
 
Public Overloads Sub SetPixelData( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal data() As Byte _
) 
'Usage
 
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim data() As Byte
 
instance.SetPixelData(row, column, data)
public void SetPixelData( 
   int row,
   int column,
   byte[] data
)
-(BOOL)setPixelData:(int)row 
             column:(int)column 
               data:(const void*)pixelData 
           dataSize:(size_t)pixelDataSize 
              error:(NSError**)outError;
            
public void setPixelData(
  int row, 
  int column, 
  byte[] data
)
            
 function Leadtools.RasterImage.SetPixelData(Int32,Int32,Byte[])( 
   row ,
   column ,
   data 
)
public:
void SetPixelData( 
   int row,
   int column,
   array<byte>^ data
) 

Parameters

row
The zero-based row number of the pixel.
column
The zero-based column number of the pixel.
data
Buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
Remarks

The image memory must be locked when you use this method. Normally, you can call Access to lock the memory before starting an operation that uses this method. Then call Release when the operation is finished.

No transformations are performed on the pixel data.

This method should be called only for 8, 16, 24, 32, 48 and 64-bit images.

Use the GetPixelData(Int32,Int32) method to get data of a specified pixel.

For more information, refer to Introduction to Image Processing With LEADTOOLS.

For more information refer to Accounting for View Perspective.

Example
For an example, refer to GetPixelData(Int32,Int32).
Requirements

Target Platforms

See Also

Reference

RasterImage Class
RasterImage Members
Overload List
BitsPerPixel

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.